package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.entity.DischargeSummary;
import com.demo.entity.DischargeSummaryMedicine;
import com.demo.entity.from.DischargeSummaryFrom;
import com.demo.response.Result;

import java.security.NoSuchAlgorithmException;
import java.util.List;

/**
 * 出院总结表 服务类
 * @author zm
 * @since 2020-11-30
 */
public interface IDischargeSummaryService extends IService<DischargeSummary> {

    /**
     * 新增出院总结
     * @param dischargeSummary       实体对象
     * @throws Exception
     */
    Integer addDischargeSummary(DischargeSummaryFrom dischargeSummary) throws Exception;

    /**
     * 查询出院总结
     * @param pageNumber            页码
     * @param pageSize              大小
     * @param dischargeSummaryId    出院总结ID
     * @param patientId             病患ID
     * @return
     */
    Result dischargeSummaryList(Integer pageNumber,Integer pageSize,Integer dischargeSummaryId,Integer patientId);

    /**
     * 更新出院总结
     * @param dischargeSummaryFrom          实体对象
     */
    Integer updateDischargeSummary(DischargeSummaryFrom dischargeSummaryFrom) throws Exception;

    /**
     * 出院总结--医生签字
     * @param dischargeSummaryId
     * @param userPass
     */
    Integer dischargeSignature(Integer dischargeSummaryId,String userPass) throws Exception;
}
